package cn.com.hd.mall.web.webservices.entity.response.merch;

import java.io.Serializable;
import java.util.List;

import cn.com.hd.mall.web.common.Tuple;
import cn.com.hd.mall.web.webservices.entity.BaseResponse;

@SuppressWarnings("serial")
public class NewMerchDetailResponse extends BaseResponse {

    private NewMerchDetailModel newMerchDetailModel;

    public NewMerchDetailModel getNewMerchDetailModel() {
        return newMerchDetailModel;
    }

    public void setNewMerchDetailModel(NewMerchDetailModel newMerchDetailModel) {
        this.newMerchDetailModel = newMerchDetailModel;
    }

    public static class NewMerchDetailModel implements Serializable {
        // 商品
        private String merchId;
        private String merchName;
        private String merchStatus;
        private String merchSpec;
        // 收藏
        private String isFavorite;
        // 卖家
        private String sellerId;
        private String sellerName;
        private String supportCod;
        // 零售价
        private String retailPrice;
        // 丹露价
        private String danluPrice;
        // 最少起售数量
        private String minSaleNumber;
        private List<String> promotionList;
        // 属性模型
        private List<Tuple<String, String>> propertyList;
        // 图片模型
        private String picUrl;
        private List<String> albumPicUrl;
        private List<String> detailPicUrl;
        // 换算量
        private int unitsConvertion;
        // 品类优化需求新增字段 lyf 2016-12-02 11:33:02
        private String minDeliveryAmt;              // 经销商订单最小配送金额(new)
        private String serverTel;                   // 客服电话(new)
        private String returnFlag;                  // 0-支持退货 1-不支持退货(new)

        public String getMinDeliveryAmt() {
            return minDeliveryAmt;
        }

        public void setMinDeliveryAmt(String minDeliveryAmt) {
            this.minDeliveryAmt = minDeliveryAmt;
        }

        public String getServerTel() {
            return serverTel;
        }

        public void setServerTel(String serverTel) {
            this.serverTel = serverTel;
        }

        public String getReturnFlag() {
            return returnFlag;
        }

        public void setReturnFlag(String returnFlag) {
            this.returnFlag = returnFlag;
        }

        public int getUnitsConvertion() {
            return unitsConvertion;
        }

        public void setUnitsConvertion(int unitsConvertion) {
            this.unitsConvertion = unitsConvertion;
        }

        public String getMerchId() {
            return merchId;
        }

        public void setMerchId(String merchId) {
            this.merchId = merchId;
        }

        public String getMerchName() {
            return merchName;
        }

        public void setMerchName(String merchName) {
            this.merchName = merchName;
        }

        public String getMerchStatus() {
            return merchStatus;
        }

        public void setMerchStatus(String merchStatus) {
            this.merchStatus = merchStatus;
        }

        public String getMerchSpec() {
            return merchSpec;
        }

        public void setMerchSpec(String merchSpec) {
            this.merchSpec = merchSpec;
        }

        public String getIsFavorite() {
            return isFavorite;
        }

        public void setIsFavorite(String isFavorite) {
            this.isFavorite = isFavorite;
        }

        public String getSellerId() {
            return sellerId;
        }

        public void setSellerId(String sellerId) {
            this.sellerId = sellerId;
        }

        public String getSellerName() {
            return sellerName;
        }

        public void setSellerName(String sellerName) {
            this.sellerName = sellerName;
        }

        public String getSupportCod() {
            return supportCod;
        }

        public void setSupportCod(String supportCod) {
            this.supportCod = supportCod;
        }

        public String getRetailPrice() {
            return retailPrice;
        }

        public void setRetailPrice(String retailPrice) {
            this.retailPrice = retailPrice;
        }

        public String getDanluPrice() {
            return danluPrice;
        }

        public void setDanluPrice(String danluPrice) {
            this.danluPrice = danluPrice;
        }

        public String getMinSaleNumber() {
            return minSaleNumber;
        }

        public void setMinSaleNumber(String minSaleNumber) {
            this.minSaleNumber = minSaleNumber;
        }

        public List<String> getPromotionList() {
            return promotionList;
        }

        public void setPromotionList(List<String> promotionList) {
            this.promotionList = promotionList;
        }

        public String getPicUrl() {
            //bug#5822
            if (null != picUrl && !picUrl.equals("")) {
                if (!picUrl.contains("http")) {
                    picUrl = "http:" + picUrl;
                }
            }
            return picUrl;
        }

        public void setPicUrl(String picUrl) {
            this.picUrl = picUrl;
        }

        public List<Tuple<String, String>> getPropertyList() {
            return propertyList;
        }

        public void setPropertyList(List<Tuple<String, String>> propertyList) {
            this.propertyList = propertyList;
        }

        public List<String> getAlbumPicUrl() {
            return albumPicUrl;
        }

        public void setAlbumPicUrl(List<String> albumPicUrl) {
            this.albumPicUrl = albumPicUrl;
        }

        public List<String> getDetailPicUrl() {
            return detailPicUrl;
        }

        public void setDetailPicUrl(List<String> detailPicUrl) {
            this.detailPicUrl = detailPicUrl;
        }
    }
}